package com.sz.mes.mapper;

import com.diboot.core.mapper.BaseCrudMapper;
import com.sz.mes.entity.ProductTask;
import com.sz.mes.entity.Technique;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 生产任务Mapper
 *
 * @author hem
 * @version 1.0
 * @date 2023-05-19
 * Copyright © szhs
 */
@Mapper
public interface ProductTaskMapper extends BaseCrudMapper<ProductTask> {


    String insertTechnologyInfo(@Param("technique") Technique technique);

    List<ProductTask> selectAll(@Param("receiptNum") String receiptNum,
                                @Param("productNum") String productNum,
                                @Param("productSpecification") String productSpecification,
                                @Param("productName") String productName,
                                @Param("planNum") String planNum,
                                @Param("pageIndex") int pageIndex,
                                @Param("pageSize") int pageSize);

    List<String> selectDuplicateData(@Param("receiptNumAndStockNumList") List<String> receiptNumAndStockNumList);

    List<String> selectReceiptNum();

    void updateTaskNum(@Param("receiptNumList") List<String> receiptNumList);

    void batchUpdateTaskNum();

    void deleteAll();

    void truncateAll();

}

